#include <ros.h>
#include <std_msgs/String.h>
#include <std_msgs/Empty.h>

ros::NodeHandle nh;

std_msgs::String str_msg;
ros::Publisher chatter("chatter",&str_msg);

char hello[20]="hello world log";

char debug[]="debug statements";
char info[]="infos";
char warn[]="warnings";
char error[]="errors";
char fatal[]="fatalitiles";


void setup() 
{
  pinMode(13,OUTPUT);
  nh.initNode();
  nh.advertise(chatter);
  
}

void loop() 
{
  str_msg.data = hello;
  chatter.publish(&str_msg);

  nh.logdebug(debug);
  nh.loginfo(info);
  nh.logwarn(warn);
  nh.logerror(error);
  nh.logfatal(fatal);

  nh.spinOnce();
  delay(1000);
  delay(1000);
}
